class Person {
    String name = "人类";//名字
    public void study(){
        System.out.println(name+"学习");
    }
    public void spank(){
        System.out.println(name+"说话");
    }
}
class Student extends Person{
    String name = "张三";
    String className="软件一班";

    @Override
    public void study() {
        System.out.println(className+name+"在学校学习");
    }
    public void doHomeWork() {
        System.out.println(name+"写作业");
    }
}